package com.bjsxt.modle;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * description:
 * 资产记录
 *
 * @author ALIENWARE
 * @version v1.0.0
 * @create 5/1/2024
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "资产记录")
public class AccountVo {
    /**
     * 自增id
     */
    @ApiModelProperty(value = "自增id")
    private Long id;
    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    private Long userId;
    /**
     * 币种id
     */
    @ApiModelProperty(value = "币种id")
    private Long coinId;
    /**
     * 账号状态：1，正常；2，冻结；
     */
    @ApiModelProperty(value = "账号状态：1，正常；2，冻结；")
    private Byte status;
    /**
     * 币种可用金额
     */
    @ApiModelProperty(value = "币种可用金额")
    private BigDecimal balanceAmount;
    /**
     * 币种冻结金额
     */
    @ApiModelProperty(value = "币种冻结金额")
    private BigDecimal freezeAmount;
    /**
     * 累计充值金额
     */
    @ApiModelProperty(value = "累计充值金额")
    private BigDecimal rechargeAmount;
    /**
     * 累计提现金额
     */
    @ApiModelProperty(value = "累计提现金额")
    private BigDecimal withdrawalsAmount;
    /**
     * 净值
     */
    @ApiModelProperty(value = "净值")
    private BigDecimal netValue;
    /**
     * 占用保证金
     */
    @ApiModelProperty(value = "占用保证金")
    private BigDecimal lockMargin;
    /**
     * 持仓盈亏/浮动盈亏
     */
    @ApiModelProperty(value = "持仓盈亏/浮动盈亏")
    private BigDecimal floatProfit;
    /**
     * 总盈亏
     */
    @ApiModelProperty(value = "总盈亏")
    private BigDecimal totalProfit;
    /**
     * 充值地址
     */
    @ApiModelProperty(value = "充值地址")
    private String recAddr;
    /**
     * 版本号
     */
    @ApiModelProperty(value = "版本号")
    private Long version;
    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    private Date lastUpdateTime;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private Date created;
    /**
     * 卖出价格
     */
    @ApiModelProperty(value = "卖出价格")
    private BigDecimal sellRate;
    /**
     * 买入价格
     */
    @ApiModelProperty(value = "买入价格")
    private BigDecimal buyRate;
}
